import { defAxios as request } from '@/utils/http'
export function useAttaruleApi() {
    return {
        getClassification,
        getExtendProperty,
        deleteExtendProperty,
        deleteFileRuleInfo,
        getFileRuleInfo,
        saveExtendProperty,
        saveFileRuleInfo
    }
}

/**
 * 获取分类下拉列表
 *
 * @returns Proxy
 */
function getClassification(params = {}) {
    return request({
        url: '/fileRuleInfo/getClassification',
        method: 'post',
        data: params
    })
}

/**
 * 获取扩展属性
 *
 * @returns Proxy
 */
function getExtendProperty(params = {}) {
    return request({
        url: '/fileRuleInfo/getExtendProperty',
        method: 'post',
        data: params
    })
}


/**
 * 删除扩展属性
 *
 * @returns Proxy
 */
function deleteExtendProperty(params = {}) {
    return request({
        url: '/fileRuleInfo/deleteExtendProperty',
        method: 'post',
        data: params
    })
}


/**
 * 删除附件规则
 *
 * @returns Proxy
 */
function deleteFileRuleInfo(params = {}) {
    return request({
        url: '/fileRuleInfo/deleteFileRuleInfo',
        method: 'post',
        data: params
    })
}

/**
 * 获取附件规则
 *
 * @returns Proxy
 */
function getFileRuleInfo(params = {}) {
    return request({
        url: '/fileRuleInfo/getFileRuleInfo',
        method: 'post',
        data: params
    })
}

/**
 * 保存扩展属性
 *
 * @returns Proxy
 */
function saveExtendProperty(params = {}) {
    return request({
        url: '/fileRuleInfo/saveExtendProperty',
        method: 'post',
        data: params
    })
}

/**
 * 保存附件规则
 *
 * @returns Proxy
 */
function saveFileRuleInfo(params = {}) {
    return request({
        url: '/fileRuleInfo/saveFileRuleInfo',
        method: 'post',
        data: params
    })
}


